﻿<common:PageBase
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Demo01.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:common="using:Demo01.Common"
    xmlns:prism="using:Microsoft.Practices.Prism.Mvvm"
    xmlns:Designtime="using:Demo01.Designtime"
    x:Class="Demo01.Views.DetailPage"
    prism:ViewModelLocator.AutoWireViewModel="True"
    mc:Ignorable="d">

    <d:Page.DataContext>
        <Designtime:DetailPageViewModel/>
    </d:Page.DataContext>

    <Hub Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Hub.Header>
            <StackPanel Orientation="Horizontal">
                <AppBarButton VerticalAlignment="Bottom"
                                  Icon="Back" Command="{Binding GoBackCommand}" />
                <TextBlock Text="{Binding Item.Text}" />
            </StackPanel>
        </Hub.Header>
        <HubSection Background="{Binding Item.Brush}">
            <DataTemplate>
                <TextBox Header="Color Name" MinWidth="300" Text="{Binding Item.Text, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
            </DataTemplate>
        </HubSection>
    </Hub>
</common:PageBase>
